const minWidth = 120;
export default [
  {
    label: "序号",
    type: "index",
    width: 50
  },
  {
    label: "字段名",
    prop: "fieldName",
    minWidth,
    com: {
      name: "el-input",
      attrs: {
        placeholder: "请输入字段名"
      }
    }
  },
  {
    label: "字段描述",
    prop: "fieldComment",
    minWidth,
    com: {
      name: "el-input",
      attrs: {
        placeholder: "请输入字段描述"
      }
    }
  },
  {
    label: "物理类型",
    prop: "physicalType",
    minWidth,
    com: {
      name: "el-select"
    },
    theOptions: [
      { label: "string", value: "string" },
      { label: "number", value: "number" },
      { label: "boolean", value: "boolean" },
      { label: "array", value: "array" },
      { label: "object", value: "object" },
      { label: "date", value: "date" }
    ]
  },
  {
    label: "数据类型",
    prop: "dataType",
    minWidth,
    com: {
      name: "el-select"
    },
    theOptions: [
      { label: "string", value: "string" },
      { label: "number", value: "number" },
      { label: "boolean", value: "boolean" },
      { label: "array", value: "array" },
      { label: "object", value: "object" },
      { label: "date", value: "date" }
    ]
  },
  {
    label: "字段属性",
    prop: "fieldProp",
    minWidth,
    com: {
      name: "el-input",
      attrs: {
        placeholder: "请输入字段属性"
      }
    }
  },
  {
    label: "插入",
    prop: "insert",
    minWidth,
    com: {
      name: "el-checkbox"
    }
  },
  {
    label: "编辑",
    prop: "edit",
    minWidth,
    com: {
      name: "el-checkbox"
    }
  },
  {
    label: "列表",
    prop: "list",
    minWidth,
    com: {
      name: "el-checkbox"
    }
  },
  {
    label: "查询",
    prop: "query",
    minWidth,
    com: {
      name: "el-checkbox"
    }
  },
  {
    label: "查询方式",
    prop: "queryType",
    minWidth,
    com: {
      name: "el-select"
    },
    theOptions: [
      { label: "=", value: "EQ" },
      { label: "!=", value: "NE" },
      { label: ">", value: "GT" },
      { label: ">=", value: "GTE" },
      { label: "<", value: "LT" },
      { label: "<=", value: "LTE" },
      { label: "LIKE", value: "LIKE" },
      { label: "BETWEEN", value: "BETWEEN" }
    ]
  },
  {
    label: "必填",
    prop: "required",
    minWidth,
    com: {
      name: "el-checkbox"
    }
  },
  {
    label: "显示类型",
    prop: "htmlType",
    minWidth,
    com: {
      name: "el-select"
    },
    theOptions: [
      { label: "文本框", value: "input" },
      { label: "文本域", value: "textarea" },
      { label: "下拉框", value: "select" },
      { label: "单选框", value: "radio" },
      { label: "复选框", value: "checkbox" },
      { label: "日期控件", value: "datetime" },
      { label: "图片上传", value: "imageUpload" },
      { label: "文件上传", value: "fileUpload" },
      { label: "富文本控件", value: "editor" }
    ]
  },
  {
    label: "字典类型",
    prop: "dictType",
    minWidth,
    com: {
      name: "el-input",
      attrs: {
        placeholder: "请输入字典类型"
      }
    }
  },
  {
    width: 80,
    label: "操作",
    slots: "operation"
  }
] as tableColumnOp[];